You can enable anti-aliasing to an entire Kanzi application, or reduce aliasing in selected nodes by applying supersampling. If most of the content in your application requires anti-aliasing, applying anti-aliasing to the entire application provides better performance. If only parts of your application require anti-aliasing, use supersampling only on those parts that need it.
When you apply anti-aliasing to the entire application you set the number of anti-aliasing surface samples you want to use. Because this value depends on the device on which you want to run your Kanzi application, check the documentation of that device for supported values.
To apply anti-aliasing to the entire application:
SurfaceSamplesAntialiasing
parameter to the number of anti-aliasing surface samples you want to use.SurfaceSamplesAntialiasing = 4
onConfigure()
function in the C++ application set the configuration.defaultSurfaceProperties.antiAliasing
parameter to the number of anti-aliasing surface samples you want to use.onConfigure()
configuration.defaultSurfaceProperties.antiAliasing = 4;
See Reference for application configuration.
If only parts of your application require anti-aliasing, use supersampling only on those parts that need it.
To reduce aliasing in selected nodes:
Reference for application configuration